package cn.itcast.mapper;


import cn.itcast.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //通过账号和密码查询用户是否存在
     User findUser(@Param("usercode") String usercode,@Param("password") String password);
}